package com.biosan.utils;

import java.io.IOException;
import org.apache.commons.dbutils.QueryRunner;

public class GetQueryRunner
{
    private QueryRunner qr = null;

    private GetQueryRunner()
    {
        QueryRunner qr0 = null;
        GetDataSource gs = GetDataSource.getGS();
        qr0 = new QueryRunner(gs.getDS());
        this.qr = qr0;

    }

    private static GetQueryRunner gr = null;

    public static GetQueryRunner getQRunner()
    {
        if (gr == null)
        {
            gr = new GetQueryRunner();
        }
        return gr;
    }

    public QueryRunner getQr()
    {
        return qr;
    }

    public void setQr(QueryRunner qr) throws IOException
    {
        this.qr = qr;
    }

}
